package com.chizha.service;


import com.chizha.common.model.RUser;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.SqlPara;

public class UserService {
	
	private final static RUser dao = new RUser().dao();
	
	public Page<RUser> paginate(int pageNumber, int pageSize) {
		SqlPara sql = Db.getSqlPara("animal.user");
		return dao.paginate(pageNumber, pageSize, sql);
	}
}
